//把key封装到外面
const KEY = 'my-token-vant-mobile'

//设置保存token
 export const setToken = (data) => {
  localStorage.setItem(KEY,data)
}

//获取token
 export const getToken = () => {
   return localStorage.getItem(KEY)
}
 
//删除token
export const removeToken = () => { 
  localStorage.removeItem(KEY)
}